# import qrcode
# img = qrcode.make('Some data here')
# type(img)  # qrcode.image.pil.PilImage
# img.save("some_file.png")

import qrcode
from qrcode.constants import ERROR_CORRECT_L

qr = qrcode.QRCode(
    version=1,
    error_correction=ERROR_CORRECT_L,
    box_size=10,
    border=4,
)

qr.add_data("https://wenku.csdn.net/answer/bf9b35a40a9c4673a4b6a73bf6e57550")
qr.make(fit=True)

img = qr.make_image(fill_color="black", back_color="white")
img.save("test.png")





